package com.itheima.stream;

import java.util.*;
import java.util.stream.IntStream;
import java.util.stream.Stream;

public class Demo1 {
    public static void main(String[] args) {
        ArrayList<String > list=new ArrayList<>();
        Stream<String> streamList = list.stream();
        //
        String[] arr={"1","2","3"};
        Stream<String> streamArr = Arrays.stream(arr);
        //
        Stream<String> stream = Stream.of("hell0", "hi", "java");
        //
        int[] arr2={1,2,3};
        IntStream stream1 = Arrays.stream(arr2);
        //map必须要转化为键值对对象或者
        Map<String,String> map=new HashMap<>();
        //拿到所有的值
        Collection<String> values = map.values();
        values.stream();

    }
}
